package com.atguigu.crowd.service.api;

import org.springframework.stereotype.Service;

import com.atguigu.crowd.entity.Sheng;
import com.github.pagehelper.PageInfo;

import java.util.List;

@Service
public interface ShengService {

	PageInfo<Sheng> getPage(Integer pageNum,Integer pageSize,String keyword );

	Sheng getShengByPrimaryKey(Integer id);

	int shengAddOne(Sheng sheng);
	
	int existShengNameCount(String shengName);

	/**
	 * 执行修改
	 */
	public void updateByExampleSelective(Sheng sheng);
	
	/**
	 * 根据id删除数据
	 * @param id
	 */
	void deleteById(Integer id);
	
	/**
	 * 执行更新
	 * @param sheng
	 */
	public void updateSheng(Sheng sheng);

	/**
	 * 根据id号批量删除和单条删除 完全可以 共用
	 * @param shengids
	 */
	public void removeShengs(List<Integer>shengids);
	
}


















